package com.sptpc.demo1.repository;

import com.sptpc.demo1.model.Drink;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

//<实体类,主键类型>
public interface DrinkRepository extends JpaRepository<Drink,Integer> {
    List<Drink> findDrinksByCategory_Id(Integer id);


}
